<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
<style type="text/css">
.form{
    width: 250px;
    height: 200px;
    background-color: #00ccFF;
    margin: 0 auto;
    padding: 50px;
    text-align: center;
}
.w-150{
    width: 200px;
    margin-bottom: 10px;
}

.h-30{
    height: 30px;
}

.button {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 10px;
    width: 230px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-bottom: 10px;
}
</style>
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
    </script>
</head>
<body>
    <div class="form">
        <span id="email"></span><span>,欢迎登录系统</span>
    </div>
</body>
<script>
$(document).ready(function(){
    $.ajax({
            url:"/api/user/info",
            type: "GET",
            success:function(result){
                if(result){
    			    $("#email").text(result);
                }else{
                    window.location.href = "login.html";
                }
			},
			error:function(err){
			    alert(err.responseText);
			    window.location.href = "login.html";
			}
	 });
});
</script>
</html>